﻿
using System.Data;
using DataObject;

namespace Event.Controls.Album
{
    public partial class Comment : System.Web.UI.UserControl
    {
        #region variables, constants, properties
        protected string SortURL;
        protected string EncodedBase64Title;
        protected string DetailedURL;
        #endregion

        internal bool DataBind(DataTable dt)
        {
            if (dt != null && dt.Rows.Count > 0)
            {
                var r = dt.Rows[0];

                SortURL = r[Constants.Table_Members.Url].ToString();
                DetailedURL = r[Constants.Table_Members.Url].ToString();
                EncodedBase64Title = r[Constants.Table_Members.EncodedBase64Title].ToString();
                hfDetailedURL.Value = r[Constants.Table_Members.Url].ToString();
                hfEncodedBase64Title.Value = r[Constants.Table_Members.EncodedBase64Title].ToString();

                return true;
            }
            return false;
        }
    }
}